home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / conex63a.zip / TECH.REF < prev    next >
Text File  |  1994-01-28  |  56KB  |  1,307 lines

  1.  
  2.  
  3.                           Technical Reference
  4.  
  5.                                CONEX 6.3a
  6.  
  7.                          Fri  01-28-94 10:35:14
  8.  
  9.  
  10.  
  11. ╒══════════════════════════════════════════════════════════════════════╕
  12. │                               Ports                                  │
  13. ╘══════════════════════════════════════════════════════════════════════╛
  14.  
  15.  
  16. COM
  17. ────────────────────────────────────────────────────────────────────
  18.  
  19.  - by default COM 1/3 use interrupt 4, COM 2/4 use interrupt 3
  20.  - base port registers are read from BIOS communication area
  21.    normally 03f8h is COM 1 and 02f8h is COM 2
  22.  
  23.  
  24. port *F8 - Transmit/Receive Buffer  (read/write)
  25.            Baud Rate Divisor LSB if bit 7 of LCR is set  (read/write)
  26.  
  27.  
  28. port *F9 - Interrupt Enable Register - IER  (read/write)
  29.            Baud Rate Divisor MSB if bit 7 of LCR is set  (read/write)
  30.  
  31.         │7│6│5│4│3│2│1│0│
  32.                  │ │ │ └──── 1 = enable data available int
  33.                  │ │ └───── 1 = enable THRE interrupt
  34.                  │ └────── 1 = enable lines status interrupt
  35.                  └─────── 1 = enable modem-status-change interrupt
  36.  
  37.  
  38.                         Baud Rate Divisor Table
  39.  
  40.                      Baud Rate                      Baud Rate
  41.     Baud Rate         Divisor         Baud Rate      Divisor
  42.  
  43.        50              2304              2400           48
  44.        75              1536              3600           32
  45.       110              1047              4800           24
  46.       150               768              9600           12
  47.       200               576             14400            8
  48.       300               384             19200            6
  49.       600               192             38400            3
  50.      1200                96             57600            2
  51.      1800                64            115200            1
  52.  
  53.  
  54. port *FA - Interrupt Identification Register - IIR  (read only)
  55.  
  56.         │7│6│5│4│3│2│1│0│  2FA, 3FA Interrupt ID Register
  57.          │ │ │ │ │ │ │ └──── 1 = no int. pending, 0=int. pending
  58.          │ │ │ │ │ └─┴───── Interrupt Id bits (see below)
  59.          │ │ │ │ └──────── 16550  1 = timeout int. pending, 0 for 8250/16450
  60.          │ │ └─┴───────── reserved (zero)
  61.          └─┴──────────── 16550  set to 1 if FIFO queues are enabled
  62.  
  63.         Bits
  64.          21       description            Priority           To reset
  65.          00  modem-status-change      lowest      read MSR
  66.          01  transmit-register-empty  low         read IIR / write THR
  67.          10  data-available           high        read rec buffer reg
  68.          11  line-status              highest     read LSR
  69.  
  70.         - interrupt pending flag uses reverse logic, 0 = pending, 1 = none
  71.         - interrupt will occur if any of the line status bits are set
  72.         - THRE bit is set when THRE register is emptied into the TSR
  73.  
  74. Port *FA - 16550 FIFO Control Register - FCR  (write only)
  75.  
  76.         │7│6│5│4│3│2│1│0│  2FA, 3FA  FIFO Control Register
  77.          │ │ │ │ │ │ │ └──── 1 = enable clear XMIT and RCVR FIFO queues
  78.          │ │ │ │ │ │ └───── 1 = clear RCVR FIFO
  79.          │ │ │ │ │ └────── 1 = clear XMIT FIFO
  80.          │ │ │ │ └─────── 1 = change RXRDY & TXRDY pins from mode 0 to mode 1
  81.          │ │ └─┴──────── reserved (zero)
  82.          └─┴─────────── trigger level for RCVR FIFO interrupt
  83.  
  84.         Bits      RCVR FIFO
  85.          76     Trigger Level
  86.          00        1 byte
  87.          01        4 bytes
  88.          10        8 bytes
  89.          11       14 bytes
  90.  
  91.         - Bit 0 must be set in order to write to other FCR bits
  92.         - Bit 1 when set to 1 the RCVR FIFO is cleared and this bit is reset.
  93.           The receiver shift register is not cleared.
  94.         - Bit 2 when set to 1 the XMIT FIFO is cleared and this bit is reset.
  95.           The transmit shift register is not cleared.
  96.  
  97.  
  98. port *FB - Line Control Register - LCR  (read/write)
  99.  
  100.         │7│6│5│4│3│2│1│0│
  101.          │ │ │ │ │ │ └─┴──── word length select bits (see below)
  102.          │ │ │ │ │ └─────── 0 = 1 stop bit, 1 = 1.5 or 2  (see note)
  103.          │ │ │ │ └──────── 0 = no parity, 1 = parity (PEN)
  104.          │ │ │ └───────── 0 = odd parity, 1 = even (EPS)
  105.          │ │ └────────── 0 = parity disabled, 1 = enabled
  106.          │ └─────────── 0 = turn break off, 1 = force spacing break state
  107.          └──────────── 1 = baud rate divisor (DLAB)
  108.  
  109.        Bits
  110.         10     Word length bits
  111.         00 = 5 bits per character
  112.         01 = 6 bits per character
  113.         10 = 7 bits per character
  114.         11 = 8 bits per character
  115.  
  116.  
  117. port *FC - Modem Control Register - MCR  (read/write)
  118.  
  119.         │7│6│5│4│3│2│1│0│
  120.                  │ │ │ └──── 1 = activate DTR
  121.                  │ │ └───── 1 = activate RTS
  122.                  │ └────── OUT1
  123.                  └─────── OUT2
  124.  
  125.  
  126. port *FD - Line Status Register - LSR  (read only)
  127.  
  128.         │7│6│5│4│3│2│1│0│
  129.            │ │ │ │ │ │ └──── 1 = data ready
  130.            │ │ │ │ │ └───── 1 = overrun error (OE)
  131.            │ │ │ │ └────── 1 = parity error (PE)
  132.            │ │ │ └─────── 1 = framing error (FE)
  133.            │ │ └──────── 1 = break interrupt  (BI)
  134.            │ └───────── 1 = transmitter holding register empty (THRE)
  135.            └────────── 1 = transmitter shift register empty (TSRE)
  136.  
  137.  
  138. port *FE - Modem Status Register - MSR (read only)
  139.  
  140.         │7│6│5│4│3│2│1│0│
  141.          │ │ │ │ │ │ │ └──── 1 = DCTS  Delta CTS  (CTS changed)
  142.          │ │ │ │ │ │ └───── 1 = DDSR  Delta DSR  (DSR changed)
  143.          │ │ │ │ │ └────── 1 = RI ring indicator changed
  144.          │ │ │ │ └─────── 1 = DDCD  Delta Data Carrier Detect (DCD changed)
  145.          │ │ │ └──────── 1 = CTS
  146.          │ │ └───────── 1 = DSR
  147.          │ └────────── 1 = ring indicator (RI)
  148.          └─────────── 1 = receive line signal detect
  149.  
  150.  
  151.  
  152.  
  153.  
  154. INT 14H
  155. ────────────────────────────────────────────────────────────────────
  156.  
  157. INT 14,0 - Initialize Communications Port Parameters
  158.  
  159.         AH = 00
  160.         AL = parms for initialization (see tables below)
  161.         DX = zero based serial port number (0-1) (0-3 for AT)
  162.  
  163.         │7│6│5│4│3│2│1│0│  AL                      Parity (bits 4 & 3)
  164.          │ │ │ │ │ │ └─┴──── word length bits          00 = none
  165.          │ │ │ │ │ └─────── stop bits flag             01 = odd
  166.          │ │ │ └─┴──────── parity bits                 10 = none
  167.          └─┴─┴─────────── baud rate bits               11 = even
  168.  
  169.        Word length (bits 1 & 0)            Stop bit count (bit 2)
  170.  
  171.            10 = 7 bits                        0 = 1 stop bit
  172.            11 = 8 bits                        1 = 2 stop bits
  173.  
  174.        Baud rate (bits 7, 6 & 5)
  175.  
  176.         000 = 110 baud      100 = 1200 baud
  177.         001 = 150 baud      101 = 2400 baud
  178.         010 = 300 baud      110 = 4800 baud
  179.         011 = 600 baud      111 = 9600 baud
  180.  
  181.  
  182.         on return:
  183.         AH = port status
  184.         AL = modem status
  185.  
  186.  
  187.  
  188. INT 14,1 - Send Character to Communications Port
  189.  
  190.         AH = 01
  191.         AL = character to send
  192.         DX = zero based serial port number (0-1) (0-3 for AT)
  193.  
  194.  
  195.         on return:
  196.         AH = port status
  197.              bit 7=0 indicates success
  198.              bit 7=1 indicates error, bits 0-6 indicate cause
  199.  
  200.  
  201. INT 14,2 - Receive Character from Communications Port
  202.  
  203.         AH = 02
  204.         DX = zero based serial port number (0-1) (0-3 for AT)
  205.  
  206.  
  207.         on return:
  208.         AH = port status
  209.              bit 7 = 0 if successful
  210.              bit 7 = 1 if call failed
  211.         AL = character received if call was success
  212.  
  213.  
  214. INT 14,3 - Get Serial Port Status
  215.  
  216.         AH = 03
  217.         DX = zero based serial port number (0-1) (0-3 for AT)
  218.  
  219.         on return:
  220.         AH = port status
  221.         AL = modem status
  222.  
  223.  
  224. INT 14,4 - Send Break (not part of BIOS)
  225.  
  226.         AH = 04
  227.  
  228.  
  229.  
  230.  
  231. ╒══════════════════════════════════════════════════════════════════════╕
  232. │                              VT320 Commands                          │
  233. ╘══════════════════════════════════════════════════════════════════════╛
  234.  
  235.         - VT100 commands are marked with (1)
  236.  
  237.  
  238. Cursor movement
  239. ────────────────────────────────────────